x86_emulate: split the {reg,mem} union in struct operand
authorTim Deegan <tim@xen.org>
Fri, 27 Mar 2015 15:13:07 +0000 (16:13 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 27 Mar 2015 15:13:07 +0000 (16:13 +0100)
commitdd766684e7c97641bbaf16ee2b0e9add388199b7
tree2e11a1f967512d7b0eb60d2c10c1b1d1ba2174e5
parentc665cb7a0d55522fb4376c62cef9a0bab87fd40e
x86_emulate: split the {reg,mem} union in struct operand

In the hopes of making any future errors along the lines of XSA-123
into clean crashes instead of memory corruption bugs.

Signed-off-by: Tim Deegan <tim@xen.org>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c